package server.gui;

import java.awt.Dimension;
import java.util.ArrayList;
import javax.swing.BoxLayout;
import javax.swing.JPanel;
import entity.Constants;

public class FishManagerPanel extends JPanel implements Runnable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 58195535041528484L;
	
	public ArrayList<FishRow> fishRow = new ArrayList<FishRow>();
	
	public FishManagerPanel() {
		
		this.setPreferredSize(new Dimension(Constants.PANEL_FM_WIDTH, Constants.PANEL_FM_HEIGHT));
		this.setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
		this.setVisible(true);
		
		createContent();
		
	}
	
	private void createContent() {
		FishRow frFishRow;
		
		for(int i = 0; i < Constants.IMAGE_ICONS.size(); i++) {
			
			frFishRow = new FishRow(i, Constants.SPEED[i], Constants.IMAGE_ICONS.get(i));
			fishRow.add(frFishRow);
			
			this.add(frFishRow);
		}	
	}

	@Override
	public void run() {
	}
}